package cn.wei.reallyenjoy.diary.service.impl;

import cn.wei.reallyenjoy.common.result.Result;
import cn.wei.reallyenjoy.diary.service.CommentsHystrixService;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wei
 * @Date: 2021/12/04/22:12
 */
@Component
public class CommentsHystrixFallbackServiceImpl implements CommentsHystrixService {
    @Override
    public Result getCommentsByDiaryId(Long diaryId) {
        return Result.fail("服务繁忙或异常，请稍后再尝试，diaryId:"+diaryId);
    }
}
